Extracts the y element from string x.
Extracts the y to z range of elements from string x.
Extracts the n element of array x.
Note: The subscript ranges are 1
Subscript is used to extract one or more characters from a text string or to extract an element from an array.
The following examples are applicable to Basic syntax:
Returns "S", where LNAME = "Smith".
Returns "V", where Postal Code = "T5A 9V2" (the space between A and 9 counts as an element).
{customer.POSTAL CODE} (5 to 7)
Returns "9V2", where Postal Code = T5A 9V2.
Returns "40", where ItemNumber is A1/4020/B10.
MyName = Array ("Company A", "Company B", "Company C")
While Subscript tests a target string for the presence of an element and extracts the element (if found) from the string, In String only tests the target string for the presence of the element.
Extracts the y element from string x.
Extracts the y to z range of elements from string x.
Extracts the n element of array x.
Note: The subscript ranges are 1
Subscript is used to extract one or more characters from a text string or to extract an element from an array.
The following examples are applicable to Crystal syntax:
Returns 466; 466 is the third element in the array.
Returns "S", where LNAME = "Smith".
Returns "V", where Postal Code = "T5A 9V2" (the space between A and 9 counts as an element).
{customer.POSTAL CODE} [5 to 7]
Returns "9V2", where Postal Code = "T5A 9V2".
Returns "40", where ItemNumber is A1/4020/B10.
Do not confuse Subscript with In String operator.
While Subscript tests a target string for the presence of an element and extracts the element (if found) from the string, In String only tests the target string for the presence of the element.
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |